dataContent
Type
property
Summary
Get or set the data array that the PolyList will display.
Syntax
set the dataContent of widget to <DataArray>
get the dataContent of widget
Description
Use the dataContent property to get or set the array of data that the PolyList will display. The first dimension of the array uses numeric keys, and the value of each is an array in which each key corresponds to a subitems name. If the data inside the key with the subItem name is an array and there is a key 'content-type' and a key 'content' inside it then that subitem is drawn by taking properties from that array and overwriting the values defined in the layout for that specific element. The value taken by the dataContent property is an ordered array.
Examples
local tDataContent
set the dataContent of widget"PolyList" to ""
repeat with x = 1 to 50
put "user" into tDataContent[x]["icon"]
put "The title" into tDataContent[x]["title"]
put uuid() into tDataContent[x]["description"]
put "user" into tDataContent[x]["action"]
end repeat
set the dataContent of widget"PolyList" to tDataContent